package com.xdb.sqlparser.dialect.mysql.ast.statement;

import java.util.List;

import com.xdb.sqlparser.ast.SQLCommentHint;
import com.xdb.sqlparser.dialect.mysql.visitor.MySqlASTVisitor;

public class MySqlStartTransactionStatement extends MySqlStatementImpl {

	private boolean consistentSnapshot = false;

	private boolean begin = false;
	private boolean work = false;

	private List<SQLCommentHint> hints;

	public boolean isConsistentSnapshot() {
		return consistentSnapshot;
	}

	public void setConsistentSnapshot(boolean consistentSnapshot) {
		this.consistentSnapshot = consistentSnapshot;
	}

	public boolean isBegin() {
		return begin;
	}

	public void setBegin(boolean begin) {
		this.begin = begin;
	}

	public boolean isWork() {
		return work;
	}

	public void setWork(boolean work) {
		this.work = work;
	}

	public void accept0(MySqlASTVisitor visitor) {
		visitor.visit(this);

		visitor.endVisit(this);
	}

	public List<SQLCommentHint> getHints() {
		return hints;
	}

	public void setHints(List<SQLCommentHint> hints) {
		this.hints = hints;
	}
}
